package backend.core.tm;

import java.io.*;

public class test {
    public static void main(String[] args) throws FileNotFoundException {
        TransactionManagerImpl tm = TransactionManager.create("cun/a");
        //开启一个事务
        long xid = tm.begin();
        //提交事务
        tm.commit(xid);
        //tm.abort(xid);//回滚事务
        System.out.println(tm.isAborted(xid));
    }
}
